<!--  
      Autore: Nichele Dany
      
-->

<%@ page contentType="text/html"%>

<%@ page import="it.dei.unipd.healthservice.resource.*"%>
<%@ page import="java.util.*" %>

<%@ include file="/jsp/header.jsp"%>

<tr>
	<td style="float:left;">
		<%@ include file="/html/left_menu_cliente.html"%>
	</td>

	<!-- Corpo principale -->
	<td width="727"  style="float:right;">
		
				<h3>Lista ordini effettuati</h3>
				<form id="ordini-form" method="post" name="modulo" action="./view_ordini_cliente" >
				<div class="tab">
					<table width="700" class="corpo" >
					<thead><tr><th><b>Codice</b></th><th><b>Stato</b></th><th><b>Data Ordine</b></th><th><b>Data Spedizione</b></th></tr></thead>
					<tbody>
			<% 	
			
			List<Ordine> ordini = (List<Ordine>)request.getAttribute("ordini");
			if (ordini==null)
				{ordini = new ArrayList<Ordine>();}
					
			for (Ordine o : ordini) {%>
				<tr><td><%=o.getCodice()%></td><td><%=o.getStato()%></td><td><%=o.getDataOrdine()%></td><td><%=o.getDataSpedizione()%></td></tr>
						
			<% }
			
			%>
			</tbody>
			</table>
			</div>
			
		
		</form>
		</td>
	
			
	<!-- fine corpo principale -->

</tr>

<tr>
	<td height="20">&nbsp;</td>
</tr>
<tr>
	<td align="center"><img
			src="images/footer.gif" alt="" width="920" height="4" border="0"></td>
</tr>
<tr>
	<%@ include file="/html/footer.html"%>
</tr>
</table>
</body>
</html>
